package gps808;

import cn.com.gps169.db.dao.GpsInfoMapper;
import cn.com.gps169.db.model.GpsInfo;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests;

import cn.com.gps169.db.dao.GpsCarInfoMapper;
import cn.com.gps169.db.model.GpsCarInfo;
import net.sf.json.JSONObject;

@ActiveProfiles("production")
@ContextConfiguration(locations = {"/root-context.xml"})
public class test extends AbstractTransactionalJUnit4SpringContextTests{
	
	@Autowired
	private GpsInfoMapper gpsInfoMapper;
	
	@Test
	public void test(){
		GpsInfo gpsInfo = new GpsInfo();
		gpsInfo.setSimNo("000000020000");
		gpsInfo = gpsInfoMapper.selectGpsInfo(gpsInfo);
		System.out.println( JSONObject.fromObject(gpsInfo).toString());
	}
}
